package cm.tedu._05mvcboot02.pojo.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

@Data
public class AddUserDTO {
    @NotBlank(message = "用户名不能为空")
    @Size(min = 6, max = 12, message = "用户名长度必须为6~12位")
    @ApiModelProperty(value = "用户名", required = true, example = "Tony")
    private String username;
    @NotNull(message = "密码不能为空")
    @ApiModelProperty(value = "用户密码", required = true, example = "123456")
    private String password;
    @ApiModelProperty(value = "用户昵称", required = true,example = "tony")
    private String nickname;
}
